define(["angularAMD"], function (angularAMD) {
    angularAMD.service('dynamicService', ['$rootScope', '$filter', '$translate', 'config', 'MMWService', '$mdDialog',
        function($rootScope, $filter, $translate, config, $MMWService, $mdDialog){
            this.init = function (options) {
                $mdDialog.dialog(
                    'JSplugins/angular-material-lite/template/dynamicService.tmp.html',
                    function(dialog){
                        let _dialog = {
                            css_url: 'JSplugins/angular-material-lite/template/dynamicService.tmp.css',
                        };
                        _dialog._args = options._args;
                        _dialog.callback = options.callback;
                        _dialog = Object.assign(_dialog, options._item);
                        return _dialog;
                    }
                );
            }
        }
    ]);
});